package org.deng.learn.dubbo.provider.service.imp;

import org.deng.learn.dubbo.api.entity.User;
import org.deng.learn.dubbo.api.service.IUserService;

/**
 * @author 邓力宾
 * @Desc
 * @since 2020/6/17 上午9:44
 */
public class UserServiceImpl implements IUserService {
    private Integer port;
    public UserServiceImpl(){

    }
    public UserServiceImpl(Integer port){
        this.port = port;
    }
    public User get(Integer id) {
        return new User(id, "张三::"+id, port);
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
